<template>
  <j-select-biz-component v-bind="configs" v-on="$listeners" :queryConfig="queryConfig" :width="1000" />
</template>

<script>
import JSelectBizComponent from './JSelectBizComponent'

export default {
  name: 'JSelectPositiop',
  components: { JSelectBizComponent },
  props: ['value'],
  data() {
    return {
      queryConfig:[
        {
          label: '职位编码',
          key: 'positionCode'
        }
      ],
      settings: {
        name: '职位',
        displayKey: 'positionName',
        returnKeys: ['id', 'positionCode'],
        listUrl:  window._CONFIG['domianURL'] + '/cnPositionController/getParentPosPageList',
        queryParamCode: 'positionName',
        queryParamText: '职位名称',
        columns: [
          { title: '职位编码', field: 'positionCode', align: 'center', width: '50%', widthRight: '70%' },
          { title: '职位名称', field: 'positionName', align: 'center', width: '50%' },
        ]
      }
    }
  },
  computed: {
    configs() {
      return Object.assign({ value: this.value }, this.settings, this.$attrs)
    }
  }
}
</script>

<style lang="less" scoped></style>
